<div ng-include src="tpl/public/header.html"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li>路演视频列表</li>
  </ol>
  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    <div class="form-group">
      <input type="text" class="form-control" placeholder="视频名称" ng-model="searchMap.title" title="">
    </div>
    <div class="form-group">
      <input type="text" class="form-control" placeholder="产品名称" ng-model="searchMap.productName" title="">
    </div>
    <div class="form-group">
    	<label>是否加密：</label>
      <select type="text" class="form-control" placeholder="是否加密" ng-model="searchMap.isEncryption" style="width:100px;">
        <option value="">--全部--</option>
        <option value="1">是</option>
        <option value="0">否</option>
      </select>
    </div>
    <div class="form-group">
    	<label>添加时间：</label>
      从<input type="date" class="form-control" placeholder="开始日期" ng-model="searchMap.createDateStart" title="">
    </div>
    <div class="form-group">
      至<input type="date" class="form-control" placeholder="结束日期" ng-model="searchMap.createDateEnd" title="">
    </div>
    <div class="form-group">
    	<label>是否添加产品:</label>
      <select type="text" class="form-control" placeholder="是否添加产品" ng-model="searchMap.isProduct" style="width:100px;">
        <option value="">--全部--</option>
        <option value="1">是</option>
        <option value="0">否</option>
      </select>
    </div>
    <div class="form-group">
      <input type="text" class="form-control" placeholder="讲师" ng-model="searchMap.lecturerName" title="">
    </div>
    <button type="submit" class="btn btn-default">查询</button>
    <a href="#/roadVideo/add" class="btn btn-primary" style="padding-left:30px;padding-right: 30px">新增</a>
  </form>
  <div class="form-group">
    <label>视频密码：</label><input type="text" class="form-control" style="display: inline-block;width: 100px" placeholder="视频密码" ng-model="encryptionPassword" title="">
    <div class="btn btn-default" ng-click="saveEncryptionPassword()">修改密码</div>
  </div>
  <table class="table table-striped table-hover">
    <thead>
    <tr>
      <th width="70" ng-click="orderby('createDate')">添加时间
				<i class="orderby-icons" ng-class="{'orderby-desc':config.orderParameter=='01' && config.orderType == '01','orderby-asc':config.orderParameter=='01' && config.orderType == '02'}"></i>
      </th>
      <th width="70" ng-click="orderby('updateDate')">修改时间
				<i class="orderby-icons" ng-class="{'orderby-desc':config.orderParameter=='02' && config.orderType == '01','orderby-asc':config.orderParameter=='02' && config.orderType == '02'}"></i>
      </th>
      <th width="70" ng-click="orderby('playNum')">播放次数（真/配置）
        <i class="orderby-icons" ng-class="{'orderby-asc':config.orderParameter=='03' && config.orderType == '01','orderby-desc':config.orderParameter=='03' && config.orderType == '02'}"></i>
      </th>
      <th width="70">视频名称</th>
      <th width="70">产品名称</th>
      <th width="70">是否加密</th>
      <th width="70">讲师信息</th>
      <th width="70">操作</th>
    </tr>
    </thead>
    <tbody>
      <tr ng-repeat="li in list">
        <td width="70">{{li.createDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td width="70">{{li.updateDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td width="70">{{li.actualBrowseVolume || 0}}/{{li.browseVolume || 0}}</td>
        <td width="70">{{li.title}}</td>
        <td width="70">{{li.productName}}</td>
        <td width="70">{{li.isEncryption==1 ? '是' : '否'}}</td>
        <td width="70">{{li.lecturerCompany}}<br>{{li.lecturerJob}}<br>{{li.lecturerName}}</td>
        <td width="70">
        	<a href="javascript:;" ng-href="#/roadVideo/add?id={{li.id}}">编辑</a>
        	<a href="javascript:;" ng-click="delete(li.id)">删除</a>
        </td>
      </tr>
    </tbody>
  </table>
  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="list.length > 0"></div>

</div>
